#coding:utf-8
a = (1,4,5,6,7)
if 4 in a:
    print "存在"
else:
    print "不存在"

b = list(a)
print b
b[2] =8
print tuple(b)



setinfo = set('acbdfem')
finfo = set('sabcdef')
setinfo.add('abc')
print setinfo

setinfo.remove('m')
print setinfo

e = setinfo & finfo
f =  setinfo | finfo
print e
print f

number_one = dict({'name':'李明','age':25,'langusge':80,'math':75,'english':85})
number_two = dict({'name':'张强','age':23,'langusge':75,'math':82,'english':78})
number_two['python'] = 80
number_one['python'] = 60
print number_two
print number_one
number_two.update({'math':89})
print number_two
number_one.pop('age')
print number_one

number_two.pop('name')
number_two.pop('age')
k = number_two.values()
k.sort()
print k

print number_one.pop('city','beijing')